<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <style type="text/css">
        .layui-form-item .layui-form-checkbox{margin-top: 0px;}
        .layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top: 4px;}
    </style>
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;">
    <div class="layui-card">
        <form class="layui-form" method="post" lay-filter="baseForm" id="baseForm">
            <input type="hidden" name="id" id="id"/>
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>基础信息</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>系统编号</label>
                        <div class="layui-input-block">
                            <input name="docNo" id="docNo" class="layui-input required" lay-verify="required" placeholder="协议编号" maxlength="20" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>业务类型</label>
                        <div class="layui-input-block">
                            <select id="businessType" name="businessType" class="required sel-load" lay-verify="required" sel-url="scm/common/bizSelect?type=BusinessType" sel-data-name="BusinessType" cache="static_business_type" sel-key="value" sel-val="label" sel-first="业务类型"></select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>报关类型</label>
                        <div class="layui-input-block">
                            <select id="declareType" name="declareType" lay-filter="select-declare-type" class="required sel-load" lay-verify="required" sel-url="scm/common/bizSelect?type=DeclareType" sel-data-name="DeclareType" sel-key="value" sel-val="label"></select>
                            <!--                            <select id="declareType" name="declareType" lay-filter="select-declare-type"  class="required" lay-verify="required">-->
                            <!--                                <option value="double">双抬头</option>-->
                            <!--                            </select>-->
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <span class="careful" id="declareTypeDesc"></span>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>甲方</label>
                        <div class="layui-input-block">
                            <input name="partyaName" id="partyaName" class="layui-input required auto-customer" lay-verify="required" placeholder="甲方" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>社会信用代码</label>
                        <div class="layui-input-block">
                            <input name="partyaSocialNo" id="partyaSocialNo" class="layui-input layui-disabled required" lay-verify="required" placeholder="18位统一社会信用代码" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>法人代表</label>
                        <div class="layui-input-block">
                            <input name="partyaLegalPerson" id="partyaLegalPerson" class="layui-input layui-disabled required" lay-verify="required" placeholder="法人代表" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">甲方电话</label>
                        <div class="layui-input-block">
                            <input name="partyaTel" id="partyaTel" class="layui-input layui-disabled" placeholder="甲方电话" readonly/>
                            <input type="hidden" name="partyaFax" id="partyaFax"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label"><span class="text-danger">*</span>甲方地址</label>
                        <div class="layui-input-block">
                            <input name="partyaAddress" id="partyaAddress" class="layui-input layui-disabled required" lay-verify="required" placeholder="甲方地址" readonly/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">乙方</label>
                        <div class="layui-input-block">
                            <input name="partybName" id="partybName" class="layui-input layui-disabled" placeholder="乙方" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">法人代表</label>
                        <div class="layui-input-block">
                            <input name="partybLegalPerson" id="partybLegalPerson" class="layui-input layui-disabled" placeholder="法人代表" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">乙方电话</label>
                        <div class="layui-input-block">
                            <input name="partybTel" id="partybTel" class="layui-input layui-disabled" placeholder="乙方电话" readonly/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">乙方传真</label>
                        <div class="layui-input-block">
                            <input name="partybFax" id="partybFax" class="layui-input layui-disabled" placeholder="乙方传真" readonly/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">乙方地址</label>
                        <div class="layui-input-block">
                            <input name="partybAddress" id="partybAddress" class="layui-input layui-disabled" placeholder="乙方地址" readonly/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>签约日期</label>
                        <div class="layui-input-block">
                            <input type="text" name="signingDate" id="signingDate" class="layui-input required picker-date" lay-verify="required" placeholder="签约日期" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>生效日期</label>
                        <div class="layui-input-block">
                            <input type="text" name="effectDate" id="effectDate" class="layui-input required picker-date" lay-verify="required" placeholder="生效日期" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>失效日期</label>
                        <div class="layui-input-block">
                            <input type="text" name="invalidDate" id="invalidDate" class="layui-input required picker-date" lay-verify="required" placeholder="生效日期" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label"><span class="text-danger">*</span>自动延期/年</label>
                        <div class="layui-input-block">
                            <input type="text" name="delayYear" id="delayYear" class="layui-input required" lay-verify="required" INT placeholder="自动延期/年" maxlength="2" value="1" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label"><span class="text-danger">*</span>主要进口产品</label>
                        <div class="layui-input-block">
                            <input name="mainProduct" id="mainProduct" class="layui-input required" lay-verify="required" placeholder="主要进口产品"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <textarea class="layui-textarea" name="memo"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
        <form class="layui-form" method="post" lay-filter="clauseForm" id="clauseForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-handshake-o"></i>协议约定</span></div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">进口缴税方</label>
                        <div class="layui-input-block">
                            <select id="voluntarilyTax" name="voluntarilyTax"  class="required sel-load" lay-verify="required" sel-url="scm/common/bizSelect?type=VoluntarilyTax" sel-data-name="VoluntarilyTax" sel-key="value" sel-val="label" selected-text="乙方缴税"></select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">指定成交方式</label>
                        <div class="layui-input-block">
                            <select name="transactionMode" class="sel-load" sel-url="scm/common/bizSelect?type=TransactionMode" sel-data-name="TransactionMode" sel-key="value" sel-val="label" sel-first="下单决定"></select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <span class="careful">注意：指定成交方式后订单只能选择对应的成交方式。</span>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">申请税款额度</label>
                        <div class="layui-input-block">
                            <input type="text" name="taxQuota" id="taxQuota" class="layui-input required" lay-verify="required" NUMBER placeholder="申请税款额度" value="0.00" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">申请货款额度</label>
                        <div class="layui-input-block">
                            <input type="text" name="goodsQuota" id="goodsQuota" class="layui-input required" lay-verify="required" NUMBER placeholder="申请货款额度" value="0.00" clear-val/>
                        </div>
                    </div>
                    <div class="layui-col-md6">
                        <label class="layui-form-label">申请额度说明</label>
                        <div class="layui-input-block">
                            <input type="text" name="quotaExplain" id="quotaExplain" class="layui-input" placeholder="申请额度说明" clear-val/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">货款汇率</label>
                        <div class="layui-input-block">
                            <select name="goodsRate" id="goodsRate">
                                <option value="pay_bank_china_sell">付汇日牌价卖出价</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">汇率时间</label>
                        <div class="layui-input-block">
                            <select name="goodsRateTime" id="goodsRateTime">
                                <option value="09:30">09:30</option>
                                <option value="10:00">10:00</option>
                                <option value="10:30">10:30</option>
                                <option value="now">实时汇率</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">最大超期天数</label>
                        <div class="layui-input-block">
                            <input type="text" INT name="overdueDays" id="overdueDays" class="layui-input required" maxlength="2" placeholder="最大超期天数"/>
                        </div>
                    </div>
                </div>
                <div class="layui-row tsf-hide">
                    <div class="layui-col-md3">
                        <label class="layui-form-label">税款汇率</label>
                        <div class="layui-input-block">
                            <div class="layui-col-md6">
                                <input type="checkbox" name="isPaidIn" id="isPaidIn" lay-skin="primary" title="以实缴定应收" checked lay-filter="checkbox-isPaidIn"/>
                            </div>
                            <div class="layui-col-md6">
                                <select name="taxRate" id="taxRate">
                                    <option value="imp_customs">报关日海关汇率</option>
                                    <option value="imp_bank_china_sell">报关日牌价卖出价</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md3">
                        <label class="layui-form-label">汇率时间</label>
                        <div class="layui-input-block">
                            <select name="taxRateTime" id="taxRateTime">
                                <option value="">-</option>
                                <option value="09:30">09:30</option>
                                <option value="10:00">10:00</option>
                                <option value="10:30">10:30</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>
        </form>

        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-quora"></i>账期报价</span></div>
        <div class="layui-card-body">
            <form id="advance_charge" class="layui-form quora-form" lay-filter="advance_charge_form">
                <input type="hidden" name="id"/>
                <div class="layui-form-item">
                    <div class="layui-inline" style="margin-bottom: 0px;">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">
                            <input type="checkbox" name="quoteType" title="预付款" value="advance_charge" checked/>
                        </div>
                        <label class="layui-form-label">代理费计费模式</label>
                        <div class="layui-input-inline" style="width: 141px;">
                            <div class="layui-col-md11">
                                <select name="agencyFeeMode" lay-filter="select-agency-fee-mode" tsf-mark="fee_mode_advance_charge">
                                    <option value="standard">按金额计费</option>
                                    <!--                                    <option value="express">按重量计费</option>-->
                                </select>
                            </div>
                        </div>
                        <div class="layui-input-inline" style="width: 70px;">
                            <span style="line-height: 29px;padding-left: 6px;">是否加税点</span>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <input type="checkbox" name="taxIncluded" lay-skin="primary" title="加税点" lay-filter="check-tax-included" cal-mark="advance_charge" value="true"/>
                        </div>
                        <label class="layui-form-label">代杂费账期</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="agreeMode">
                                <option value="import_day">进口日</option>
                            </select>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <input type="text" name="day" class="layui-input layui-disabled" value="0" readonly/>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <input type="hidden" name="month" value="0"/>
                        <input type="hidden" name="monthDay" value="0"/>
                        <input type="hidden" name="firstMonth" value="0"/>
                        <input type="hidden" name="firstMonthDay" value="0"/>
                        <input type="hidden" name="lowerMonth" value="0"/>
                        <input type="hidden" name="lowerMonthDay" value="0"/>
                        <input type="hidden" name="week" value="0"/>
                        <input type="hidden" name="weekDay" value="0"/>

                        <div class="layui-input-inline show-tooltip" show-type="fee_mode_advance_charge_express">
                            <a href="javascript:"><i class="layui-icon layui-icon-help"></i></a>
                            <div class="a-tooltip" style="left: -24px;top: -150px;width: 800px;">
                                <div class="tooltip-content arrow-bottom-left" id="view-advance_charge"></div>
                            </div>
                        </div>

                    </div>
                </div>
                <div class="layui-form-item tsf-hide">
                    <div class="layui-inline">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">宽限天数</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <input type="text" name="graceDay" class="layui-input" value="0" INT/>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <span style="line-height: 29px;">逾期利率</span>
                        </div>
                        <div class="layui-input-inline" style="width: 56px;">
                            <input type="text" name="overdueRate" class="layui-input" value="0" NUMBER/>
                        </div>
                        <div class="layui-input-inline" style="width: 40px;">
                            <span style="line-height: 29px;">% / 天</span>
                        </div>
                    </div>
                </div>
                <div show-type="fee_mode_advance_charge_standard">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">&nbsp;</label>
                            <div class="layui-input-inline"  style="width: 141px;">&nbsp;</div>
                            <div class="layui-input-inline" style="width: 36px;">
                                <span style="line-height: 29px;">代理费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 70px;">
                                <select name="taxType" class="required" lay-verify="required" lay-filter="select-tax-type" cal-mark="advance_charge">
                                    <option value="after_tax">税后</option>
                                    <option value="pre_tax">税前</option>
                                </select>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="basePrice" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('advance_charge')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 26px;">
                                <span style="line-height: 29px;">/单 + </span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="serviceRate" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('advance_charge')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 64px;">
                                <span style="line-height: 29px;">%  最低收费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="minCost" class="layui-input" value="0.00" NUMBER/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">计算公式</label>
                        <div class="layui-input-inline" style="width: auto">
                            <span style="line-height: 29px;font-size: 12px;" show-formula class="text-danger"></span>
                        </div>
                    </div>
                </div>
                <div class="tsf-hide">
                    <input type="checkbox" name="taxFit" lay-skin="primary"/>
                    <input type="hidden" name="taxAgreeMode" value="import_day"/>
                    <input type="hidden" name="taxDay" value="0"/>
                    <input type="hidden" name="taxMonth" value="0"/>
                    <input type="hidden" name="taxMonthDay" value="0"/>
                    <input type="hidden" name="taxFirstMonth" value="0"/>
                    <input type="hidden" name="taxFirstMonthDay" value="0"/>
                    <input type="hidden" name="taxLowerMonth" value="0"/>
                    <input type="hidden" name="taxLowerMonthDay" value="0"/>
                    <input type="hidden" name="taxWeek" value="0"/>
                    <input type="hidden" name="taxWeekDay" value="0"/>

                    <input type="checkbox" name="goodFit" lay-skin="primary"/>
                    <input type="hidden" name="goAgreeMode" value="payment_day"/>
                    <input type="hidden" name="goDay" value="0"/>
                    <input type="hidden" name="goMonth" value="0"/>
                    <input type="hidden" name="goMonthDay" value="0"/>
                    <input type="hidden" name="goFirstMonth" value="0"/>
                    <input type="hidden" name="goFirstMonthDay" value="0"/>
                    <input type="hidden" name="goLowerMonth" value="0"/>
                    <input type="hidden" name="goLowerMonthDay" value="0"/>
                    <input type="hidden" name="goWeek" value="0"/>
                    <input type="hidden" name="goWeekDay" value="0"/>
                </div>
                <hr>
            </form>

            <form id="pad_tax" class="layui-form quora-form" lay-filter="pad_tax_form">
                <input type="hidden" name="id"/>
                <div class="layui-form-item">
                    <div class="layui-inline" style="margin-bottom: 0px;">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">
                            <input type="checkbox" name="quoteType" title="垫税款" value="pad_tax"/>
                        </div>
                        <label class="layui-form-label">代理费计费模式</label>
                        <div class="layui-input-inline" style="width: 141px;">
                            <div class="layui-col-md11">
                                <select name="agencyFeeMode" lay-filter="select-agency-fee-mode" tsf-mark="fee_mode_pad_tax">
                                    <option value="standard">按金额计费</option>
                                    <!--                                    <option value="express">按重量计费</option>-->
                                </select>
                            </div>
                        </div>
                        <div class="layui-input-inline" style="width: 70px;">
                            <span style="line-height: 29px;padding-left: 6px;">是否加税点</span>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <input type="checkbox" name="taxIncluded" lay-skin="primary" title="加税点" lay-filter="check-tax-included" cal-mark="pad_tax" value="true"/>
                        </div>
                        <label class="layui-form-label">代杂费账期</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="agreeMode" tsf-mark="pad_tax" lay-filter="select-agree-mode">
                                <option value="import_day">进口日</option>
                                <option value="month">月结</option>
                                <option value="half_month">半月结</option>
                                <option value="week">周结</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_tax_month">
                            <select name="month">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                                <option value="2">第2个月后</option>
                                <option value="3">第3个月后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_tax_month">
                            <select name="monthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 50px;" show-type="pad_tax_import_day">
                            <input type="text" name="day" class="layui-input" INT placeholder="天数" value="0"/>
                        </div>
                        <div class="layui-input-inline tsf-hide" show-type="pad_tax_import_day" style="width: 50px">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 58px;" show-type="pad_tax_half_month">
                            <span style="line-height: 29px;">1号到15号</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_tax_half_month">
                            <select name="firstMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_tax_half_month">
                            <select name="firstMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16" selected>16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31">月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 62px;" show-type="pad_tax_half_month">
                            <span style="line-height: 29px;">16号到月末</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_tax_half_month">
                            <select name="lowerMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_tax_half_month">
                            <select name="lowerMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_tax_week">
                            <select name="week">
                                <option value="0">本周</option>
                                <option value="1" selected>下周</option>
                                <option value="2">第2周后</option>
                                <option value="3">第3周后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_tax_week">
                            <select name="weekDay">
                                <option value="1" selected>星期一</option>
                                <option value="2">星期二</option>
                                <option value="3">星期三</option>
                                <option value="4">星期四</option>
                                <option value="5">星期五</option>
                                <option value="6">星期六</option>
                                <option value="7">星期日</option>
                            </select>
                        </div>

                        <div class="layui-input-inline show-tooltip" show-type="fee_mode_pad_tax_express">
                            <a href="javascript:"><i class="layui-icon layui-icon-help"></i></a>
                            <div class="a-tooltip" style="left: -24px;top: -150px;width: 800px;">
                                <div class="tooltip-content arrow-bottom-left" id="view-pad_tax"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">&nbsp;</label>
                    <div class="layui-input-inline"  style="width: 130px;">&nbsp;</div>
                    <div class="layui-input-inline" style="width: 146px;">
                        <input type="checkbox" name="taxFit" lay-skin="primary" title="税款账期与代杂费一致" checked lay-filter="checkbox-arg" arg-type="#padTaxArg"/>
                    </div>
                    <div class="tsf-hide" id="padTaxArg">
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="taxAgreeMode" tsf-mark="tax_pad_tax" lay-filter="select-agree-mode">
                                <option value="import_day">进口日</option>
                                <option value="month">月结</option>
                                <option value="half_month">半月结</option>
                                <option value="week">周结</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_tax_month">
                            <select name="taxMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                                <option value="2">第2个月后</option>
                                <option value="3">第3个月后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_tax_month">
                            <select name="taxMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 50px;" show-type="tax_pad_tax_import_day">
                            <input type="text" name="taxDay" class="layui-input" INT placeholder="天数" value="0"/>
                        </div>
                        <div class="layui-input-inline tsf-hide" show-type="tax_pad_tax_import_day">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 58px;" show-type="tax_pad_tax_half_month">
                            <span style="line-height: 29px;">1号到15号</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_tax_half_month">
                            <select name="taxFirstMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_tax_half_month">
                            <select name="taxFirstMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16" selected>16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31">月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 62px;" show-type="tax_pad_tax_half_month">
                            <span style="line-height: 29px;">16号到月末</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_tax_half_month">
                            <select name="taxLowerMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_tax_half_month">
                            <select name="taxLowerMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_tax_week">
                            <select name="taxWeek">
                                <option value="0">本周</option>
                                <option value="1" selected>下周</option>
                                <option value="2">第2周后</option>
                                <option value="3">第3周后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_tax_week">
                            <select name="taxWeekDay">
                                <option value="1" selected>星期一</option>
                                <option value="2">星期二</option>
                                <option value="3">星期三</option>
                                <option value="4">星期四</option>
                                <option value="5">星期五</option>
                                <option value="6">星期六</option>
                                <option value="7">星期日</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">宽限天数</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <input type="text" name="graceDay" class="layui-input" value="0" INT/>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <span style="line-height: 29px;">逾期利率</span>
                        </div>
                        <div class="layui-input-inline" style="width: 56px;">
                            <input type="text" name="overdueRate" class="layui-input" value="0" NUMBER/>
                        </div>
                        <div class="layui-input-inline" style="width: 40px;">
                            <span style="line-height: 29px;">% / 天</span>
                        </div>
                    </div>
                </div>
                <div show-type="fee_mode_pad_tax_standard">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">&nbsp;</label>
                            <div class="layui-input-inline"  style="width: 141px;">&nbsp;</div>
                            <div class="layui-input-inline" style="width: 36px;">
                                <span style="line-height: 29px;">代理费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 70px;">
                                <select name="taxType" class="required" lay-verify="required" lay-filter="select-tax-type" cal-mark="pad_tax">
                                    <option value="after_tax">税后</option>
                                    <option value="pre_tax">税前</option>
                                </select>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="basePrice" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('pad_tax')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 26px;">
                                <span style="line-height: 29px;">/单 + </span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="serviceRate" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('pad_tax')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 64px;">
                                <span style="line-height: 29px;">%  最低收费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="minCost" class="layui-input" value="0.00" NUMBER/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">计算公式</label>
                        <div class="layui-input-inline" style="width: auto">
                            <span style="line-height: 29px;font-size: 12px;" show-formula class="text-danger"></span>
                        </div>
                    </div>
                </div>

                <div class="tsf-hide">

                    <input type="checkbox" name="goodFit" lay-skin="primary"/>
                    <input type="hidden" name="goAgreeMode" value="payment_day"/>
                    <input type="hidden" name="goDay" value="0"/>
                    <input type="hidden" name="goMonth" value="0"/>
                    <input type="hidden" name="goMonthDay" value="0"/>
                    <input type="hidden" name="goFirstMonth" value="0"/>
                    <input type="hidden" name="goFirstMonthDay" value="0"/>
                    <input type="hidden" name="goLowerMonth" value="0"/>
                    <input type="hidden" name="goLowerMonthDay" value="0"/>
                    <input type="hidden" name="goWeek" value="0"/>
                    <input type="hidden" name="goWeekDay" value="0"/>
                </div>
                <hr>
            </form>

            <form id="pad_good" class="layui-form quora-form" lay-filter="pad_good_form">
                <input type="hidden" name="id"/>
                <div class="layui-form-item">
                    <div class="layui-inline" style="margin-bottom: 0px;">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">
                            <input type="checkbox" name="quoteType" title="垫货款" value="pad_good"/>
                        </div>

                        <label class="layui-form-label">代理费计费模式</label>
                        <div class="layui-input-inline" style="width: 141px;">
                            <div class="layui-col-md11">
                                <select name="agencyFeeMode" lay-filter="select-agency-fee-mode" tsf-mark="fee_mode_pad_good">
                                    <option value="standard">按金额计费</option>
                                    <!--                                    <option value="express">按重量计费</option>-->
                                </select>
                            </div>
                        </div>
                        <div class="layui-input-inline" style="width: 70px;">
                            <span style="line-height: 29px;padding-left: 6px;">是否加税点</span>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <input type="checkbox" name="taxIncluded" lay-skin="primary" title="加税点" lay-filter="check-tax-included" cal-mark="pad_good" value="true"/>
                        </div>
                        <label class="layui-form-label">代杂费账期</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="agreeMode" tsf-mark="pad_good" lay-filter="select-agree-mode">
                                <option value="import_day">进口日</option>
                                <option value="month">月结</option>
                                <option value="half_month">半月结</option>
                                <option value="week">周结</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_good_month">
                            <select name="month">
                                <option value="0" selected>本月</option>
                                <option value="1">次月</option>
                                <option value="2">第2个月后</option>
                                <option value="3">第3个月后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_good_month">
                            <select name="monthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 50px;" show-type="pad_good_import_day">
                            <input type="text" name="day" class="layui-input" INT placeholder="天数" value="0"/>
                        </div>
                        <div class="layui-input-inline tsf-hide" show-type="pad_good_import_day" style="width: 50px">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 58px;" show-type="pad_good_half_month">
                            <span style="line-height: 29px;">1号到15号</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_good_half_month">
                            <select name="firstMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_good_half_month">
                            <select name="firstMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16" selected>16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31">月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 62px;" show-type="pad_good_half_month">
                            <span style="line-height: 29px;">16号到月末</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_good_half_month">
                            <select name="lowerMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_good_half_month">
                            <select name="lowerMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="pad_good_week">
                            <select name="week">
                                <option value="0">本周</option>
                                <option value="1" selected>下周</option>
                                <option value="2">第2周后</option>
                                <option value="3">第3周后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="pad_good_week">
                            <select name="weekDay">
                                <option value="1" selected>星期一</option>
                                <option value="2">星期二</option>
                                <option value="3">星期三</option>
                                <option value="4">星期四</option>
                                <option value="5">星期五</option>
                                <option value="6">星期六</option>
                                <option value="7">星期日</option>
                            </select>
                        </div>

                        <div class="layui-input-inline show-tooltip" show-type="fee_mode_pad_good_express">
                            <a href="javascript:"><i class="layui-icon layui-icon-help"></i></a>
                            <div class="a-tooltip" style="left: -24px;top: -150px;width: 800px;">
                                <div class="tooltip-content arrow-bottom-left" id="view-pad_good"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">&nbsp;</label>
                    <div class="layui-input-inline"  style="width: 130px;">&nbsp;</div>
                    <div class="layui-input-inline" style="width: 146px;">
                        <input type="checkbox" name="taxFit" lay-skin="primary" title="税款账期与代杂费一致" checked lay-filter="checkbox-arg" arg-type="#padTaxArg1"/>
                    </div>
                    <div class="tsf-hide" id="padTaxArg1">
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="taxAgreeMode" tsf-mark="tax_pad_good" lay-filter="select-agree-mode">
                                <option value="import_day">进口日</option>
                                <option value="month">月结</option>
                                <option value="half_month">半月结</option>
                                <option value="week">周结</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_good_month">
                            <select name="taxMonth">
                                <option value="0" selected>本月</option>
                                <option value="1">次月</option>
                                <option value="2">第2个月后</option>
                                <option value="3">第3个月后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_good_month">
                            <select name="taxMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 50px;" show-type="tax_pad_good_import_day">
                            <input type="text" name="taxDay" class="layui-input" INT placeholder="天数" value="0"/>
                        </div>
                        <div class="layui-input-inline tsf-hide" show-type="tax_pad_good_import_day">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 58px;" show-type="tax_pad_good_half_month">
                            <span style="line-height: 29px;">1号到15号</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_good_half_month">
                            <select name="taxFirstMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_good_half_month">
                            <select name="taxFirstMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16" selected>16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31">月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 62px;" show-type="tax_pad_good_half_month">
                            <span style="line-height: 29px;">16号到月末</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_good_half_month">
                            <select name="taxLowerMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_good_half_month">
                            <select name="taxLowerMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="tax_pad_good_week">
                            <select name="taxWeek">
                                <option value="0">本周</option>
                                <option value="1" selected>下周</option>
                                <option value="2">第2周后</option>
                                <option value="3">第3周后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="tax_pad_good_week">
                            <select name="taxWeekDay">
                                <option value="1" selected>星期一</option>
                                <option value="2">星期二</option>
                                <option value="3">星期三</option>
                                <option value="4">星期四</option>
                                <option value="5">星期五</option>
                                <option value="6">星期六</option>
                                <option value="7">星期日</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">&nbsp;</label>
                    <div class="layui-input-inline"  style="width: 130px;">&nbsp;</div>
                    <div class="layui-input-inline" style="width: 146px;">
                        <input type="checkbox" name="goodFit" lay-skin="primary" title="货款账期与代杂费一致" lay-filter="checkbox-arg" arg-type="#padTaxArg2"/>
                    </div>
                    <div id="padTaxArg2">
                        <div class="layui-input-inline" style="width: 100px;">
                            <select name="goAgreeMode" tsf-mark="go_pad_good" lay-filter="select-agree-mode">
                                <option value="payment_day">付款日</option>
                                <option value="month">月结</option>
                                <option value="half_month">半月结</option>
                                <option value="week">周结</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="go_pad_good_month">
                            <select name="goMonth">
                                <option value="0" selected>本月</option>
                                <option value="1">次月</option>
                                <option value="2">第2个月后</option>
                                <option value="3">第3个月后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="go_pad_good_month">
                            <select name="goMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 50px;" show-type="go_pad_good_payment_day">
                            <input type="text" name="goDay" class="layui-input" INT placeholder="天数" value="0"/>
                        </div>
                        <div class="layui-input-inline tsf-hide" show-type="go_pad_good_payment_day">
                            <span style="line-height: 29px;">天</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 58px;" show-type="go_pad_good_half_month">
                            <span style="line-height: 29px;">1号到15号</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="go_pad_good_half_month">
                            <select name="goFirstMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="go_pad_good_half_month">
                            <select name="goFirstMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16" selected>16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31">月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 62px;" show-type="go_pad_good_half_month">
                            <span style="line-height: 29px;">16号到月末</span>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="go_pad_good_half_month">
                            <select name="goLowerMonth">
                                <option value="0">本月</option>
                                <option value="1">次月</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="go_pad_good_half_month">
                            <select name="goLowerMonthDay">
                                <option value="1">1号</option>
                                <option value="2">2号</option>
                                <option value="3">3号</option>
                                <option value="4">4号</option>
                                <option value="5">5号</option>
                                <option value="6">6号</option>
                                <option value="7">7号</option>
                                <option value="8">8号</option>
                                <option value="9">9号</option>
                                <option value="10">10号</option>
                                <option value="11">11号</option>
                                <option value="12">12号</option>
                                <option value="13">13号</option>
                                <option value="14">14号</option>
                                <option value="15">15号</option>
                                <option value="16">16号</option>
                                <option value="17">17号</option>
                                <option value="18">18号</option>
                                <option value="19">19号</option>
                                <option value="20">20号</option>
                                <option value="21">21号</option>
                                <option value="22">22号</option>
                                <option value="23">23号</option>
                                <option value="24">24号</option>
                                <option value="25">25号</option>
                                <option value="26">26号</option>
                                <option value="27">27号</option>
                                <option value="28">28号</option>
                                <option value="29">29号</option>
                                <option value="30">30号</option>
                                <option value="31" selected>月末</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 100px;" show-type="go_pad_good_week">
                            <select name="goWeek">
                                <option value="0">本周</option>
                                <option value="1" selected>下周</option>
                                <option value="2">第2周后</option>
                                <option value="3">第3周后</option>
                            </select>
                        </div>
                        <div class="layui-input-inline tsf-hide" style="width: 80px;" show-type="go_pad_good_week">
                            <select name="goWeekDay">
                                <option value="1" selected>星期一</option>
                                <option value="2">星期二</option>
                                <option value="3">星期三</option>
                                <option value="4">星期四</option>
                                <option value="5">星期五</option>
                                <option value="6">星期六</option>
                                <option value="7">星期日</option>
                            </select>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">宽限天数</label>
                        <div class="layui-input-inline" style="width: 100px;">
                            <input type="text" name="graceDay" class="layui-input" value="0" INT/>
                        </div>
                        <div class="layui-input-inline" style="width: 50px;">
                            <span style="line-height: 29px;">逾期利率</span>
                        </div>
                        <div class="layui-input-inline" style="width: 56px;">
                            <input type="text" name="overdueRate" class="layui-input" value="0" NUMBER/>
                        </div>
                        <div class="layui-input-inline" style="width: 40px;">
                            <span style="line-height: 29px;">% / 天</span>
                        </div>
                    </div>
                </div>
                <div show-type="fee_mode_pad_good_standard">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">&nbsp;</label>
                            <div class="layui-input-inline"  style="width: 141px;">&nbsp;</div>
                            <div class="layui-input-inline" style="width: 36px;">
                                <span style="line-height: 29px;">代理费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 70px;">
                                <select name="taxType" class="required" lay-verify="required" lay-filter="select-tax-type" cal-mark="pad_good">
                                    <option value="after_tax">税后</option>
                                    <option value="pre_tax">税前</option>
                                </select>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="basePrice" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('pad_good')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 26px;">
                                <span style="line-height: 29px;">/单 + </span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="serviceRate" class="layui-input" value="0.00" NUMBER onblur="calculationFormula('pad_good')"/>
                            </div>
                            <div class="layui-input-inline" style="width: 64px;">
                                <span style="line-height: 29px;">%  最低收费</span>
                            </div>
                            <div class="layui-input-inline" style="width: 50px;">
                                <input type="text" name="minCost" class="layui-input" value="0.00" NUMBER/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">&nbsp;</label>
                        <div class="layui-input-inline"  style="width: 80px;">&nbsp;</div>
                        <label class="layui-form-label">计算公式</label>
                        <div class="layui-input-inline" style="width: auto">
                            <span style="line-height: 29px;font-size: 12px;" show-formula class="text-danger"></span>
                        </div>
                    </div>
                </div>
                <hr>
            </form>
        </div>

        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
        <div class="layui-card-body">
            <div class="layui-row">
                <fieldset class="layui-elem-field">
                    <legend>佐证资料</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="agr_evidence"></div>
                    </div>
                </fieldset>
                <fieldset class="layui-elem-field">
                    <legend>协议原件</legend>
                    <div class="layui-field-box">
                        <div class="upload-area" id="agr_original"></div>
                    </div>
                </fieldset>
            </div>
        </div>
    </div>
</div>
<div class="tsf-page-btn-group">
    <button type="button" class="layui-btn layui-btn-sm layui-btn-normal save-btn"><i class="fa fa-save"></i>临时保存</button>
    <button type="button" class="layui-btn layui-btn-sm examine-btn"><i class="fa fa-check-circle-o"></i>提交审核</button>
    <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>关闭</button>
</div>
<script type="text/html" id="tpl-standard-quote">
    <table class="layui-table" lay-size="sm">
        <colgroup>
            <col width="70">
            {{# let weight = 220,price = 0.0,basePrice = 0.0,priceRes = 0.0;}}
            {{# $.each(d,function(i,o){ }}
            {{# if(o.endWeight >= weight && priceRes == 0.0){price = o.price;basePrice=o.basePrice;priceRes = weight * o.price + o.basePrice;} }}
            <col width="80">
            {{# }); }}
        </colgroup>
        <tr>
            <td>重量</td>
            {{# $.each(d,function(i,o){ }}
            {{# if(i<d.length-1){ }}
            <td>≤{{o.endWeight}}kg</td>
            {{# }else{ }}
            <td>>{{o.startWeight}}kg</td>
            {{# } }}
            {{# }); }}
        </tr>
        <tr>
            <td>价格</td>
            {{# $.each(d,function(i,o){ }}
            <td>{{formatCurrency(o.price)}}</td>
            {{# }); }}
        </tr>
        <tr>
            <td>基准价</td>
            {{# $.each(d,function(i,o){ }}
            <td>{{formatCurrency(o.basePrice)}}</td>
            {{# }); }}
        </tr>
        <tr>
            <td colspan="100">
                服务费=重量x区间每千克价格+基准价；
                如重量{{weight}}KG，则价格为{{weight}}*{{price}}+{{basePrice}}={{priceRes}}。
            </td>
        </tr>
    </table>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/autocomplete.js?v=202001010101"></script>
<script type="text/javascript" src="/customer/agreement/form-common.js?v=202001010101"></script>
<script type="text/javascript" src="/customer/agreement/edit.js?v=202205271526"></script>
</body>
</html>